home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 44
/
Aminet 44 (2001)(GTI - Schatztruhe)[!][Aug 2001].iso
/
Aminet
/
util
/
cli
/
TaskByName.readme
< prev
Wrap
Text File
|
2001-07-04
|
3KB
|
75 lines
Short: Simple ARexx Scripts for handling DOS tasks by name.
Author: Robert Cranley <robertcranley@yahoo.ie>
Uploader: robertcranley@yahoo.ie
Type: util/cli
Requires: ARexx running, Status, Break and ChangeTaskPri in the default
path.
Long:
Two simple ARexx scripts which I wrote to enable the breaking and
priority adjusting of shell tasks by their name. But why? I hear you
cry. Well, ever want to simple be able to kill a task or change its
priority, but then have to use the status command, pick out your task,
and then use the Break or ChangeTaskPri commands. Well, these two
scripts allow you to do this by the name of the task instead. Handy for
DOS scripts, where there's no guarantee a task will be on a particular
CLI number. Anyway, try it out and you'll see...
Installation:
Simply copy Break.rexx and ChangePri.rexx to your REXX: assign. The
Script (S) protection bit should be set, just check it if you have
Usage:
If the S bit is set, simply typing Break.rexx or ChangePri.rexx at a
shell prompt will execute the scripts. Make sure RexxMast
(SYS:System/RexxMast) is running first! RX Break or RX ChangePri will
achieve exactly the same results.
Both scripts take the name of a task as the first argument, and
ChangePri takes a priority number (-127 -> +127) as a second argument.
Note that these scripts will only work on CLI tasks. For example:
Break.rexx SysMon
or
RX Break SysMon
will search for a task called "SysMon" and pass a break command onto it
(Ctrl-C). If it can't find the task it will tell you so.
ChangePri Workbench -1
Will set the workbench task's priority to -1.
Note that you can seriously affect your system, even making it
unuseable or crashing it, by messing with tasks. Only use these scripts
if you know what you're doing. I can't be held responsible for anything
that goes wrong as a result of using these scripts. If something does
go badly wrong though, a reboot will usually fix it, but make sure
you're not going to invalidate your disks :(
Ware:
These scripts are emailware. Do what you want with them, but you should
really mail me, even if just to say that you love or hate the scripts.
Go on, listen to that conscience :)
Enjoy!
Rob
Contact:
robertcranley@yahoo.ie
ICQ: 103366205
http://ireland.amiga.org
============================= Archive contents =============================
Original Packed Ratio Date Time Name
-------- ------- ----- --------- -------- -------------
964 512 46.8% 24-May-01 14:01:24 ChangePri.rexx
835 455 45.5% 12-Jan-01 22:02:02 break.rexx
2265 1169 48.3% 31-May-01 01:11:50 TaskByName.readme
-------- ------- ----- --------- --------
4064 2136 47.4% 31-May-101 20:50:26 3 files